#ifndef SERVER_H
#define SERVER_H

#include <sys/socket.h>

#include "simple_socket_protocol/ProtocolData.h"

namespace ssp
{
    class Server
    {
    public:
        Server();
        ~Server();
		ProtocolData recv() const;
		bool send(const ProtocolData& data) const;
        bool isConnectionEstablished() const;
    private:
        class ServerImpl;
        ServerImpl *m_impl;
    };
}

#endif // SERVER_H